package com.example.mappers;

import com.example.entity.Equipment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface EquipmentMapper {

    public List<Equipment> GetAllEquipment(@Param("currentNumber") int currentNumber, @Param("pageNumber")int pageNumber);
    public List<Equipment> GetEquipmentByCategoryId(@Param("category_id") Integer category_id);
    public List<Equipment> GetEquipmentByArmyId(@Param("army_id")Integer army_id);
    public Equipment GetEquipmentByEquipmentName(@Param("equipment_name") String equipment_name);
    public void AddEquipment(Equipment equipment);
    public void ModifyEquipment(Equipment equipment);

}
